#pragma once

#include <QWidget>
#include "CRollerData.h"
#include "ui_URollerCfg.h"
class IDevice;
class IRoller;
class URollerCfg : public QWidget
{
	Q_OBJECT

public:
	URollerCfg(QWidget* parent = nullptr);
	URollerCfg(QString sName, QString sId, QWidget* parent = nullptr);
	~URollerCfg();
	void initUi();
private:
	Ui::URollerCfgClass ui;
	QString m_sName;
	QString m_sId;
	QWidget* m_pDevWidget;
	QVector<QString>m_vecPointAddr;
	QString m_sDevAddr;
	CRollerData* m_pRollerData;

public slots:
	void slot_bindDevice();
	void slot_addDevice();
	void slot_cancel();
};

